package com.xiaoke.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CreateCategoryDTO {
    @NotBlank(message = "分类ID")
    String name;
    @Max(value = 1,message = "状态值只能是0或1")
    @Min(value = 0,message = "状态值只能是0或1")
    // 状态
    Integer status = 1;
}
